#ifndef __AI_H__
#define __AI_H__
int ai(int level, int turn, int **board, int width, int xs, int ys);
inline int point_score(int turn, int **board, int w, int x, int y, int *result);
int computer(int turn, int level, int **board, int width, int *xresult, int *yresult);
inline int is_forbidden(int *score);
enum{
	HALF_1 = 1,
	LIVE_1,
	HALF_2,
	HALF_3,
	LIVE_2 = 10,
	LIVE_2_2 = 100,
	LIVE_3 = 1000,
	HALF_4,
	LIVE_3_3 = 10000,
	LIVE_3_4,
	LIVE_4_4,
	TOOLONG,
	LIVE_4,
	FIVE=100000
};

#endif
